/**
 * 
 */
package br.com.games.daedal.ui;

import java.util.List;
import java.util.Map;

import javax.swing.JOptionPane;

import br.com.games.daedal.ia.Ares;
import br.com.games.daedal.imp.Daedal;
import br.com.games.daedal.imp.DaedalBoard;
import br.com.games.daedal.imp.DaedalPlayer;
import br.com.games.hefesto.Team;

/**
 * @author fernando
 *
 */
public class SwingDaedal extends Daedal  {

	 private boolean isOnline = true;
	 private SwingBoard board;
	 
	public void setBoard(SwingBoard board) {
		this.board = board;
	}

	public SwingDaedal(DaedalBoard board, Ares ... players) {
		super(board, players);	
	}

	@Override
	public void help() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void exit() {
		isOnline = false;		
	}

	@Override
	public boolean isRunning() {
		return isOnline;
	}
 
	@Override
	public void startNewGame(Daedal daedal) {
		board.repaint();	
	}

	@Override
	public void showWinner(List<? super DaedalPlayer> player,
			Map<Team, Integer> points) {
		JOptionPane.showMessageDialog(null, player.toString() + " Vence!!!",
				"Game Over", JOptionPane.NO_OPTION);
	} 
}
